#C 题——三角形——解法2
char = input()
print("  {}".format(char))
print(" {}{}{}".format(char, char, char))
print("{}{}{}{}{}".format(char, char, char, char, char))